package com.cj.flowabletest.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 *
 * @author cc
 * @date 2025-03-03 16:10
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AskForLeaveVo {

    private Integer days;
    private String reason;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date endTime;
    private String approveUser;


    /**
     * 流程id
     */
    private String processId;

    /**
     * 审批结果
     */
    private Boolean approval;


    public AskForLeaveVo(Integer days, String reason, Date startTime, Date endTime, String approveUser, String processId) {
        this.days = days;
        this.reason = reason;
        this.startTime = startTime;
        this.endTime = endTime;
        this.approveUser = approveUser;
        this.processId = processId;
    }
}
